<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>总公司经理审核</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../res/css/layui.css" media="all">
<script type="text/javascript" src="../../res/js/jquery-1.11.2.min.js"></script>
</head>
<body>
	<div class="demoTable" style="margin-left: 20px; margin-top: 10px;">
		
		开始时间：
		<div class="layui-inline">
			<input class="layui-input" style="height: 32px;" name="id" id="date"
				placeholder="yyyy-MM-dd" autocomplete="off">
		</div>
		-截止时间:
		<div class="layui-inline">
			<input class="layui-input" name="id" id="time" style="height: 32px;"
				placeholder="yyyy-MM-dd" autocomplete="off">
		</div>
		公司:
		<from class="layui-form">
		<div class="layui-inline">
			<select lay-filter="aihao" id="braId" style="width: 100px; border: 1px solid red;">
				<option value="">====请选择====</option>
				
			</select>
		</div>
		</from>
		<button class="layui-btn layui-btn-sm" data-type="reload" id="selectButton">搜索</button>
	</div>
	<table id="LAY_table_user" lay-filter="user"></table>
	<table class="layui-table" lay-data="{ url:'../../sumchase/SelectAll.action', page:true, id:'idTest'}" lay-filter="demo">
		<thead>
			<tr>
				<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
				<th lay-data="{field:'purId',width:'230', fixed: true, align:'center'}">采购ID</th>
				<th lay-data="{field:'braName',width:'140', align:'center'}">分公司名</th>
				<th lay-data="{field:'purSum',width:'110', align:'center'}">总金额</th>
				<th lay-data="{field:'optime',width:'200', align:'center', sort: true}">操作时间</th>
				<th lay-data="{field:'purCount',width:'100', align:'center'}">总数量</th>
				<th lay-data="{fixed: 'right',width:'190', align:'center', toolbar: '#barxqing'}">详情</th>
				<th lay-data="{fixed: 'right',width:'120', align:'center', toolbar: '#barDemo'}">操作</th>
			</tr>
		</thead>
	</table>
	
	
	<!-- 查看数据 -->
	<div id="add" style="display: none;">
		<table class="layui-table" lay-data="{ url:'../../financeschasesnaudit/findFinances.action', page:true, id:'idTest2'}" lay-filter="demo2">
		<thead>
			<tr>
				<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
				<th lay-data="{field:'comName', align:'center'}">商品名称</th>
				<th lay-data="{field:'comUnit', align:'center'}">商品单位</th>
				<th lay-data="{field:'pdMoney', align:'center'}">商品价格</th>
				<th lay-data="{field:'pdNumber', align:'center'}">商品数量</th>
				<th lay-data="{field:'pdSum', align:'center'}">价格小计</th>
			</tr>
		</thead>
	</table>
	</div>
	<div id="add3" style="display:none;">
		 <div class="layui-form-item">
		    <label class="layui-form-label">是否通过</label>
		    <div class="layui-input-block layui-form">
		      <input type="radio" name="sex" value="1" title="是" checked>
		      <input type="radio" name="sex" value="0" title="否">
		    </div>
		 </div>
		 <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">采购意见</label>
		    <div class="layui-input-block">
		      <textarea id="shenheyijian" placeholder="请输入内容" class="layui-textarea" style="width:280px;"></textarea>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button id="zuihoutijiao" class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		    </div>
		  </div>
	</div>
	
	<!-- 审核详情 -->
	<div id="add4" style="display: none;">
		<table class="layui-table" lay-data="{ url:'../../sncompurchase/snaudit.action', page:true, id:'idTest4'}" lay-filter="demo3">
			<thead>
				<tr>
					<th lay-data="{type:'checkbox', fixed: 'left'}"></th>
					<th lay-data="{field:'optime', align:'center'}">审核时间</th>
					<th lay-data="{field:'oper', align:'center'}">审核人</th>
					<th lay-data="{field:'auState', align:'center',templet:'#zhungtai'}">审核状态</th>
					<th lay-data="{field:'auIdea', align:'center'}">审核意见</th>
					<th lay-data="{field:'auComment', align:'center'}">审核部门</th>
				</tr>
			</thead>
		</table>
	</div>
	<script type="text/html" id="barxqing">
  		<button class="layui-btn layui-btn-xs" lay-event="spxq">商品详情</button>
  		<button class="layui-btn layui-btn-xs" lay-event="shxq">审核详情</button>
	</script>
	<script type="text/html" id="barDemo"> 
		{{# if(d.isva == 3) { }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled">等待仓管审核</button>
		{{# } else if(d.isva == 4){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="shenhe">审核</button>
		{{# } else if(d.isva == 5){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled">已审核</button>
		{{# } else if(d.isva == 20){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled">已签收</button>
		{{# } else if(d.isva == 21){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled">退货中</button>
		{{# } else if(d.isva == 22){ }}
		<button class="layui-btn layui-btn-warm layui-btn-xs layui-btn-disabled">退货失败</button>
		{{# }}}
	</script>
	<script type="text/javascript" id="zhungtai">
			 {{# if(d.auState == 1) { }}
		     <div>通过</div>
		 	 {{# } else if(d.auState == 0){ }}
		     <div>未通过</div>
		     {{# } else if(d.auState == null){ }}
		     <div>未通过</div>
			 {{# }}}
		
		</script>
	<script src="../../res/layui.all.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../res/js/wq/summanagerchase.js"></script>
</body>
</html>